package com.risenb.dao;

import java.util.List;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.risenb.bean.BaseLog;
import com.risenb.bean.Page;
import com.risenb.bean.SystemLog;

public interface BaseLogMapper {
	
    int removeBaseLogById(Integer id);

    int createBaseLog(BaseLog record);

    BaseLog queryBaseLogById(Integer id);

    int modifyBaseLogById(BaseLog record);

    /**
     * 根据操作人查询
     * @return
     */
    List<BaseLog> queryLogsByPage(Page<BaseLog> page);
    
    @Select("select * from baselogs where type = #{type} order by operatime desc")
    @ResultType(SystemLog.class)
    List<BaseLog> queryAlls(Integer type);
    
    List<BaseLog> queryAll(List<String> expids);
    
}